#ifndef __MEBSP_DELAY_H
#define __MEBSP_DELAY_H 			   
  
#include "at32f403a_407.h"
#include <stdint.h>
  
typedef struct
{

  uint8_t b100us_flag;
  uint16_t w100us_Cnt;
  
  uint8_t b1ms_flag;
  
}_MB_DELAY_T;

extern _MB_DELAY_T MB_Delay;

void MeBsp_delay_init(void);
void MeBsp_delay_us(uint32_t nus);
void MeBsp_delay_ms(uint32_t nms);
void MeBsp_delay_xms(uint32_t nms);

#endif





























